-
-
Notifications
You must be signed in to change notification settings - Fork 536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make the CI lint job pass again #3691
Make the CI lint job pass again #3691
Conversation
Reviewer's Guide by SourceryThis PR addresses mypy type checking issues across multiple modules. The changes include fixing variable redefinitions in the GraphQL WebSocket handlers, improving type annotations in the codegen system, clarifying variable names in the channels testing module, and adding type ignores for pydantic integration fields. Updated class diagram for codegen pluginsclassDiagram
class QueryCodegenPlugin {
}
class ConsolePlugin {
}
class Codegen {
+_load_plugin(plugin_path: str) : Union[Type[QueryCodegenPlugin], Type[ConsolePlugin]]
+_load_plugins(plugin_ids: List[str], query: Path) : List[Union[QueryCodegenPlugin, ConsolePlugin]]
}
Codegen --> QueryCodegenPlugin
Codegen --> ConsolePlugin
note for Codegen "Updated return types for _load_plugin and _load_plugins methods"
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @DoctorJohn - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟡 General issues: 2 issues found
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Hi, thanks for contributing to Strawberry 🍓! We noticed that this PR is missing a So as soon as this PR is merged, a release will be made 🚀. Here's an example of Release type: patch
Description of the changes, ideally with some examples, if adding a new feature. Release type can be one of patch, minor or major. We use semver, so make sure to pick the appropriate type. If in doubt feel free to ask :) Here's the tweet text:
|
CodSpeed Performance ReportMerging #3691 will not alter performanceComparing Summary
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3691 +/- ##
===========================================
- Coverage 97.00% 62.55% -34.46%
===========================================
Files 502 498 -4
Lines 33570 32411 -1159
Branches 5634 1670 -3964
===========================================
- Hits 32566 20275 -12291
- Misses 797 11687 +10890
- Partials 207 449 +242 |
Description
This PR makes the linter job pass again. A few weeks ago it started complaining about parts of the pydantic integration and codegen modules. I ignored it for too long and therefore didn't notice that my last PR introduced two minor issues. Time to fix it.
The first commit fixes variable redefinitions introduced in my last PR.
The other two commits aren't my proudest work but the best we can do short term to get CI pass again.
Types of Changes
Summary by Sourcery
Fix variable redefinitions and update type annotations to resolve mypy complaints and ensure the CI linter job passes.
Bug Fixes:
Enhancements: